{foreach from=$news item=new}
    <div>
        {$new.postdate} , {$new.author}
        <strong><p>  {$new.caption}  </p></strong>
            {assign var="previewImgWidth" value=156}
            {assign var="previewImgHeight" value=156}
            {if $new.image.width>$new.image.height}
            {if $new.image.width>$previewImgWidth}
            {assign var="newWidth" value=$previewImgWidth}
            {assign var="newHeight" value=`$new.image.height/$new.image.width*$previewImgHeight`}
            {else}
            {assign var="newWidth" value=$new.image.width}
            {assign var="newHeight" value=$new.image.height}
            {/if}
            {else}
            {if $new.image.height>$previewImgHeight}
            {assign var="newHeight" value=$previewImgHeight}
            {assign var="newWidth" value=`$new.image.width/$new.image.height*$previewImgWidth`}
            {else}
            {assign var="newWidth" value=$new.image.width}
            {assign var="newHeight" value=$new.image.height}
            {/if}
            {/if}
            <img src="{$new.image.url}" class="preview" alt=""  width={$newWidth} height={$newHeight}/>
            <p>
                {$new.maintext}
            </p>
        {if count($new.tags)>0}
            Тэги:&nbsp;
            {foreach from=$new.tags item=tag key=key}
                {$tag}{if $key!=(count($new.tags)-1)},&nbsp;{/if}
            {/foreach}
        {/if}
    </div>
    <br />
    <br />
{/foreach}